import request from "../utils/request";
// 获取tag列表
export const getblogTag = (target) => {
  return request({
    method: "POST",
    url: "/tag/getList",
    data: { ...target },
  });
};
// 获取分类列表
export const getblogSort = (target) => {
  return request({
    method: "POST",
    url: "/blogSort/getList",
    data: { ...target },
  });
};
// 分类  引用量  排序
export const blogSortByCite = () => {
  return request({
    method: "POST",
    url: "/blogSort/blogSortByCite",
  });
};
// tag  引用量  排序
export const tagSortByCite = () => {
  return request({
    method: "POST",
    url: "/tag/tagSortByCite",
  });
};
// tag  点击量 排序
export const tagSortByClickCount = () => {
  return request({
    method: "POST",
    url: "/tag/tagSortByClickCount",
  });
};
// 分类    点击量  排序
export const blogSortByClickCount = () => {
  return request({
    method: "POST",
    url: "/blogSort/blogSortByClickCount",
  });
};
// 分类  置顶
export const blogSortstick = (target) => {
  return request({
    method: "POST",
    url: "/blogSort/stick",
    data: target,
  });
};
//  tag   置顶
export const tagSortstick = (target) => {
  return request({
    method: "POST",
    url: "/tag/stick",
    data: target,
  });
};

// 分类   删除
export const blogSortdel = (target) => {
  return request({
    method: "POST",
    url: "/blogSort/deleteBatch",
    data: target,
  });
};
// tag 删除
export const blogTagdel = (target) => {
  return request({
    method: "POST",
    url: "/tag/deleteBatch",
    data: target,
  });
};
